import React from 'react'

export default function useForceUpdate() {
    const [,update]=React.useState(0)
  return ()=>{
    update(i=>i+1)
  }
}